package sz.com.postoffice.jxyzwgcase.dao.master;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;
import sz.com.postoffice.jxyzwgcase.dao.BaseDao;
import sz.com.postoffice.jxyzwgcase.pojo.DailyIncome;

/**
 * @ClassName DailyIncomeDao
 * @Deacription
 * @Author jmx
 * @Date 2020/11/12 15:46
 * @Version 1.0
 **/
@Mapper
public interface DailyIncomeDao extends BaseDao<DailyIncome> {
    Integer sumIntegerField(@Param("fieldName") String fieldName, @Param("userCode") String userCode,
                            @Param("startTime") String startTime, @Param("endTime") String endTime);

    Double sumDoubleField(@Param("fieldName") String fieldName, @Param("userCode") String userCode,
                           @Param("startTime") String startTime, @Param("endTime") String endTime);
}
